export default [
  {
    path: '/',
    component: resolve => {
      require(['src/views/home/index'], resolve)
    },
    icon: 'el-icon-self-shouye',
    meta: {
      title: '首页',
      name: 'index'
    },
    children: [
      {
        path: '/index',
        name: 'index',
        component: resolve => {
          require(['src/views/social/first/index'], resolve)
        },
        meta: {
          title: '首页',
          name: 'index'
        }
      }
    ]
  },
  {
    path: '/',
    component: resolve => {
      require(['src/views/home/index'], resolve)
    },
    icon: 'el-icon-self-jiaofeiguanli',
    meta: {
      title: '缴费管理',
      name: 'payManage'
    },
    children: [
      {
        path: '/pay-manage',
        name: 'payManage',
        component: resolve => {
          require(['src/views/social/payManage/index'], resolve)
        },
        meta: {
          title: '缴费管理',
          name: 'payManage'
        }
      },
      {
        path: '/pay-manage-detail',
        name: 'payManageDetail',
        component: resolve => {
          require(['src/views/social/payManage/detail'], resolve)
        },
        meta: {
          title: '缴费管理详情',
          name: 'payManageDetail'
        }
      }
    ]
  },
  {
    path: '/',
    component: resolve => {
      require(['src/views/home/index'], resolve)
    },
    meta: {
      title: '缴费个人管理',
      name: 'manage'
    },
    icon: 'el-icon-document',
    children: [
      {
        path: '/manage',
        name: 'manage',
        component: resolve => {
          require(['src/views/social/manage/index'], resolve)
        },
        meta: {
          title: '缴费个人管理',
          name: 'manage'
        }
      },
      {
        path: '/add',
        name: 'add',
        component: resolve => {
          require(['src/views/social/manage/add'], resolve)
        },
        meta: {
          title: '新增缴费单位信息',
          name: 'add'
        }
      },
      {
        path: '/detail',
        name: 'detail',
        component: resolve => {
          require(['src/views/social/manage/detail'], resolve)
        },
        meta: {
          title: '缴费信息',
          name: 'detail'
        }
      },
      {
        path: '/edit',
        name: 'edit',
        component: resolve => {
          require(['src/views/social/manage/edit'], resolve)
        },
        meta: {
          title: '编辑缴费单位信息',
          name: 'edit'
        }
      }
    ]
  },
  {
    path: '/',
    component: resolve => {
      require(['src/views/home/index'], resolve)
    },
    meta: {
      title: '结算报表',
      name: 'socialSettlement'
    },
    icon: 'el-icon-self-duizhang',
    children: [
      {
        path: '/social-settlement',
        name: 'socialSettlement',
        component: resolve => {
          require(['src/views/social/settlement/index'], resolve)
        },
        meta: {
          title: '结算对账',
          name: 'socialSettlement'
        }
      }, {
        path: '/settlement-detail',
        name: 'settlementDetail',
        component: resolve => {
          require(['src/views/social/settlement/detail'], resolve)
        },
        meta: {
          title: '缴费流水',
          name: 'settlementDetail'
        }
      }
    ]
  },
  {
    path: '/',
    component: resolve => {
      require(['src/views/home/index'], resolve)
    },
    meta: {
      title: '设置',
      name: 'basicSet'
    },
    icon: 'el-icon-setting',
    children: [
      {
        path: '/basic-set',
        name: 'basicSet',
        component: resolve => {
          require(['src/views/social/set/index'], resolve)
        },
        meta: {
          title: '设置',
          name: 'basicSet'
        }
      }
    ]
  }
]
